<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="top.jsp" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE HTML>
<html lang="en-US">
<head>
	<meta charset="UTF-8">
	<title>凯盛项目管理系统</title>
	<link rel="stylesheet" type="text/css" href="static/css/bootstrap.min.css"/>
	<style type="text/css">
		.body{
			padding-top:60px;
		}
	</style>
</head>
<body class="body">
	<div class="container">
	  <div class="row">
		
		 <!-- 导入左侧部分 -->
		<jsp:include page="side.jsp">
			<jsp:param value="file" name="tag"/>
		</jsp:include>
		
		
		<div class="span9">
			
			<a href="singlefile.jspx?m=new" class="btn btn-primary" style="float:right"><i class="icon-white  icon-share"></i>上传资料</a>
			<div class="clear"></div>
			
			<ul class="breadcrumb" style="margin-bottom:0px;border-radius: 3px 3px 0 0;margin-top:35px">
				<li class="active">
					<i class="icon-th"></i><a href="filetype.jsp">文件共享</a>><a href="task.jsp">客户资料</a>
				</li>
				<li style="float:right"><a href="filetype.jspx?m=delete" class="link-black" title="删除该文件夹"><i class="icon-trash"></i></a></li>
			</ul>
			<div class="well"  style="margin-bottom:20px;background-color:#FFF;border: 1px solid #DDDDDD;" >
				<table class="table table-striped">
					<thead>
						<tr>
							<th width="30px"></th>
							<th width="60%">名称</th>
							<th width="20%">大小</th>
							<th>创建人</th>
							<th></th>
						</tr>
					</thead>
					<tbody>
					<c:if  test="${fn:length(SingleFileList)==0}">
					该文件夹下没有任何文件，请上传！
					</c:if>
					<c:forEach items="${SingleFileList}" var="singlefile">
						<tr>
							<td>
								<img src="static/img/file.png"/>
							</td>
							<td><a href="singlefile.jspx?m=download&f=${singlefile.filename}">${singlefile.name}</a></td>
							<td>${singlefile.size}</td>
							<td>${singlefile.user.name}</td>
							<td><a href="singlefile.jspx?m=delete&id=${singlefile.id}"><i class="icon-trash"></i></a></td>
						</tr>
						</c:forEach>
					</tbody>
				</table>
				
				<a href="singlefile.jspx?m=return">←返回</a>
			</div>
			
			
		</div>
	  </div>
	</div>
</body>
</html>
